package com.lyc.mall.service;

import com.lyc.mall.model.BO.AdminAddBO;
import com.lyc.mall.model.BO.AdminLoginBO;
import com.lyc.mall.model.BO.AdminSearchBO;
import com.lyc.mall.model.VO.AdminInfoVO;

import java.util.List;

public interface AdminService {
    /**
     *
     * @param loginBO
     * @return 如果返回200表示登陆成功，返回404表示登陆失败
     */
    int loginBO(AdminLoginBO loginBO);

    List<AdminInfoVO> allAdmins();

    /**
     *
     * @param adminAddBO
     * @return code的值如果是200表示新增成功，返回404表示新增失败
     */
    int addAdmin(AdminAddBO adminAddBO);

    AdminInfoVO getAdminInfo(int adminID);

    List<AdminInfoVO> getSearchAdmins(AdminSearchBO adminSearchBO);
}
